home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 039a / jpsrc2.zip / MAKEFILE.MC5 < prev    next >
Text File  |  1991-12-13  |  6KB  |  150 lines

  1. # Makefile for Independent JPEG Group's software
  2.  
  3. # This makefile is for Microsoft C for MS-DOS, version 5.x.
  4.  
  5. # Read SETUP instructions before saying "make" !!
  6.  
  7. # Microsoft's brain-damaged version of make uses nonstandard syntax (a blank
  8. # line is needed to terminate a command list) and it simply scans the rules
  9. # in order, rather than doing a true dependency-tree walk.  Furthermore,
  10. # expanded command lines can't exceed 128 chars (this is a DOS bug, not
  11. # make's fault); so we can't just name all the objectfiles in the link steps.
  12. # Instead we shove each objectfile into a library as it is made, and link
  13. # from the library.  The objectfiles are also kept separately as timestamps.
  14.  
  15. # You may need to adjust these cc options:
  16. CFLAGS=  /AS /I. /W3 /Oail /Gs /DDEFAULT_FMT=FMT_TARGA
  17. LDFLAGS= /Fm /F 2000             # /F hhhh  sets stack size (in hex)
  18. # In particular:
  19. #   Add /DMSDOS if your compiler doesn't automatically #define MSDOS.
  20. #   Add /DMEM_STATS to enable gathering of memory usage statistics.
  21. # You might also want to add /G2 if you have an 80286, etc.
  22.  
  23.  
  24. # source files (independently compilable files)
  25. SOURCES= jbsmooth.c jcarith.c jccolor.c jcdeflts.c jcexpand.c jchuff.c \
  26.         jcmain.c jcmaster.c jcmcu.c jcpipe.c jcsample.c jdarith.c jdcolor.c \
  27.         jddeflts.c jdhuff.c jdmain.c jdmaster.c jdmcu.c jdpipe.c jdsample.c \
  28.         jerror.c jquant1.c jquant2.c jfwddct.c jrevdct.c jutils.c \
  29.         jvirtmem.c jrdjfif.c jrdgif.c jrdppm.c jrdrle.c jrdtarga.c \
  30.         jwrjfif.c jwrgif.c jwrppm.c jwrrle.c jwrtarga.c
  31. # files included by source files
  32. INCLUDES= jinclude.h jconfig.h jpegdata.h jversion.h egetopt.c
  33. # documentation, test, and support files
  34. DOCS= README SETUP USAGE CHANGELOG cjpeg.1 djpeg.1 architecture codingrules
  35. MAKEFILES= makefile.ansi makefile.unix makefile.manx makefile.sas \
  36.         makefile.mc5 makefile.mc6 makcjpeg.lnk makdjpeg.lnk makefile.tc \
  37.         makcjpeg.lst makdjpeg.lst makefile.pwc makcjpeg.cf makdjpeg.cf \
  38.         makljpeg.cf
  39. OTHERFILES= ansi2knr.c config.c
  40. TESTFILES= testorig.jpg testimg.ppm testimg.jpg
  41. DISTFILES= $(DOCS) $(MAKEFILES) $(SOURCES) $(INCLUDES) $(OTHERFILES) \
  42.         $(TESTFILES)
  43. # objectfiles common to cjpeg and djpeg
  44. COMOBJECTS= jutils.obj jvirtmem.obj jerror.obj
  45. # compression objectfiles
  46. CLIBOBJECTS= jcmaster.obj jcdeflts.obj jcarith.obj jccolor.obj jcexpand.obj \
  47.         jchuff.obj jcmcu.obj jcpipe.obj jcsample.obj jfwddct.obj \
  48.         jwrjfif.obj jrdgif.obj jrdppm.obj jrdrle.obj jrdtarga.obj
  49. COBJECTS= jcmain.obj $(CLIBOBJECTS) $(COMOBJECTS)
  50. # decompression objectfiles
  51. DLIBOBJECTS= jdmaster.obj jddeflts.obj jbsmooth.obj jdarith.obj jdcolor.obj \
  52.         jdhuff.obj jdmcu.obj jdpipe.obj jdsample.obj jquant1.obj \
  53.         jquant2.obj jrevdct.obj jrdjfif.obj jwrgif.obj jwrppm.obj \
  54.         jwrrle.obj jwrtarga.obj
  55. DOBJECTS= jdmain.obj $(DLIBOBJECTS) $(COMOBJECTS)
  56. # These objectfiles are included in libjpeg.lib
  57. LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
  58.  
  59.  
  60. # inference rule used for all compilations except jcmain.c, jdmain.c
  61. # notice that objectfile is also inserted into libjpeg.lib
  62. .c.obj:
  63.     cl $(CFLAGS) /c $*.c
  64.     lib libjpeg -+$*.obj;
  65.  
  66.  
  67. jbsmooth.obj : jbsmooth.c jinclude.h jconfig.h jpegdata.h
  68.  
  69. jcarith.obj : jcarith.c jinclude.h jconfig.h jpegdata.h
  70.  
  71. jccolor.obj : jccolor.c jinclude.h jconfig.h jpegdata.h
  72.  
  73. jcdeflts.obj : jcdeflts.c jinclude.h jconfig.h jpegdata.h
  74.  
  75. jcexpand.obj : jcexpand.c jinclude.h jconfig.h jpegdata.h
  76.  
  77. jchuff.obj : jchuff.c jinclude.h jconfig.h jpegdata.h
  78.  
  79. jcmain.obj : jcmain.c jinclude.h jconfig.h jpegdata.h jversion.h egetopt.c
  80.     cl $(CFLAGS) /c $*.c
  81.  
  82. jcmaster.obj : jcmaster.c jinclude.h jconfig.h jpegdata.h
  83.  
  84. jcmcu.obj : jcmcu.c jinclude.h jconfig.h jpegdata.h
  85.  
  86. jcpipe.obj : jcpipe.c jinclude.h jconfig.h jpegdata.h
  87.  
  88. jcsample.obj : jcsample.c jinclude.h jconfig.h jpegdata.h
  89.  
  90. jdarith.obj : jdarith.c jinclude.h jconfig.h jpegdata.h
  91.  
  92. jdcolor.obj : jdcolor.c jinclude.h jconfig.h jpegdata.h
  93.  
  94. jddeflts.obj : jddeflts.c jinclude.h jconfig.h jpegdata.h
  95.  
  96. jdhuff.obj : jdhuff.c jinclude.h jconfig.h jpegdata.h
  97.  
  98. jdmain.obj : jdmain.c jinclude.h jconfig.h jpegdata.h jversion.h egetopt.c
  99.     cl $(CFLAGS) /c $*.c
  100.  
  101. jdmaster.obj : jdmaster.c jinclude.h jconfig.h jpegdata.h
  102.  
  103. jdmcu.obj : jdmcu.c jinclude.h jconfig.h jpegdata.h
  104.  
  105. jdpipe.obj : jdpipe.c jinclude.h jconfig.h jpegdata.h
  106.  
  107. jdsample.obj : jdsample.c jinclude.h jconfig.h jpegdata.h
  108.  
  109. jerror.obj : jerror.c jinclude.h jconfig.h jpegdata.h
  110.  
  111. jquant1.obj : jquant1.c jinclude.h jconfig.h jpegdata.h
  112.  
  113. jquant2.obj : jquant2.c jinclude.h jconfig.h jpegdata.h
  114.  
  115. jfwddct.obj : jfwddct.c jinclude.h jconfig.h jpegdata.h
  116.  
  117. jrevdct.obj : jrevdct.c jinclude.h jconfig.h jpegdata.h
  118.  
  119. jutils.obj : jutils.c jinclude.h jconfig.h jpegdata.h
  120.  
  121. jvirtmem.obj : jvirtmem.c jinclude.h jconfig.h jpegdata.h
  122.  
  123. jrdjfif.obj : jrdjfif.c jinclude.h jconfig.h jpegdata.h
  124.  
  125. jrdgif.obj : jrdgif.c jinclude.h jconfig.h jpegdata.h
  126.  
  127. jrdppm.obj : jrdppm.c jinclude.h jconfig.h jpegdata.h
  128.  
  129. jrdrle.obj : jrdrle.c jinclude.h jconfig.h jpegdata.h
  130.  
  131. jrdtarga.obj : jrdtarga.c jinclude.h jconfig.h jpegdata.h
  132.  
  133. jwrjfif.obj : jwrjfif.c jinclude.h jconfig.h jpegdata.h
  134.  
  135. jwrgif.obj : jwrgif.c jinclude.h jconfig.h jpegdata.h
  136.  
  137. jwrppm.obj : jwrppm.c jinclude.h jconfig.h jpegdata.h
  138.  
  139. jwrrle.obj : jwrrle.c jinclude.h jconfig.h jpegdata.h
  140.  
  141. jwrtarga.obj : jwrtarga.c jinclude.h jconfig.h jpegdata.h
  142.  
  143.  
  144.  
  145. cjpeg.exe: $(COBJECTS)
  146.     cl /Fecjpeg.exe jcmain.obj libjpeg.lib $(LDFLAGS)
  147.  
  148. djpeg.exe: $(DOBJECTS)
  149.     cl /Fedjpeg.exe jdmain.obj libjpeg.lib $(LDFLAGS)
  150.